cmake_minimum_required(VERSION 3.17)
project(RapidSVN_Win)

set(CMAKE_CXX_STANDARD 14)
include( cmake/wx.cmake )

#public: mysql, sqlite, libssh2, wxWidget
INCLUDE_DIRECTORIES( "H:/tmp/mysql-connector-c-6.1.11-win32/include"
        "H:/tmp/libssh2/include"
        "H:/tmp/boost_1_74_0/"
        "H:/tmp/assimp/contrib/rapidjson/include/"
        "${wxWidgets_INCLUDE_DIRS}"
        "repLib/src"
        "H:/init/git_oschina/touch-me-server/" )

LINK_DIRECTORIES(
        "h:/tmp/mysql-connector-c-6.1.11-win32/lib/vs14/debug"
        "H:/tmp/sqlite3/"
        "H:/tmp/libssh2/cmake-build-debug/src"
        "H:/tmp/boost_1_74_0/stage/lib"
        ${PROJECT_BINARY_DIR}/repLib/
         )

LINK_LIBRARIES( mysqlclient.lib
        sqlite3.lib
        libssh2.lib
        libboost_locale-vc142-mt-gd-x32-1_74.lib
        libboost_filesystem-vc142-mt-gd-x32-1_74.lib
        libboost_system-vc142-mt-gd-x32-1_74.lib
        Iphlpapi.lib Ws2_32.lib
        ${wxWidgets_LIBRARIES}
        )

add_definitions("-D WXUSINGDLL")
add_definitions("-D WIN32")

add_definitions("-D __WXMSW__")
add_definitions("-D _DEBUG_" )

add_definitions("-D _UNICODE")
add_definitions("-D _WINDOWS")

#for debug setup
add_subdirectory(debug)
#find

#add_subdirectory(libpreference)

add_subdirectory(repLib)

#old
#add_subdirectory(clientV1)

add_subdirectory(console)

add_subdirectory(ipc)

add_subdirectory(board)

add_subdirectory(pyExt)

add_subdirectory(monitorDir)

add_subdirectory(ViewDemos/listItem)
add_subdirectory(ViewDemos/tray)
add_subdirectory(ViewDemos/resource_icon)
add_subdirectory(ViewDemos/WorkThread)
add_subdirectory(ViewDemos/parameters)
add_subdirectory(ViewDemos/timer)

add_subdirectory( tools/repository )